package yhao.demo.service.erp.workflow.apilist.form.flow;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import yhao.demo.service.erp.workflow.apilist.enums.task.RuleItemType;
import yhao.infra.apilist.validate.IdUnForm;

import javax.validation.constraints.NotNull;

public class FlowNodeItemForm extends IdUnForm {
    @ApiModelProperty(value = "nodeId",hidden = true)
    private String nodeId;

    @ApiModelProperty(value = "事项名",required = true)
    @NotBlank(message = "事项名不得为空")
    private String itemName;

    @ApiModelProperty(value = "事项条目设置",required = true)
    @NotBlank(message = "事项条目设置不得为空")
    private String itemConfig;

    @ApiModelProperty("期望结果")
    @NotBlank(message = "期望结果不得为空")
    private String itemExcept;

    @ApiModelProperty("期望类型")
    @NotNull(message = "期望类型不得为空")
    private RuleItemType itemExceptType;

    @ApiModelProperty(value = "是否必要条件",required = true)
    @NotNull(message = "是否必要条件不得为空")
    private Boolean necessary;

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemConfig() {
        return itemConfig;
    }

    public void setItemConfig(String itemConfig) {
        this.itemConfig = itemConfig;
    }

    public String getItemExcept() {
        return itemExcept;
    }

    public void setItemExcept(String itemExcept) {
        this.itemExcept = itemExcept;
    }

    public RuleItemType getItemExceptType() {
        return itemExceptType;
    }

    public void setItemExceptType(RuleItemType itemExceptType) {
        this.itemExceptType = itemExceptType;
    }

    public Boolean getNecessary() {
        return necessary;
    }

    public void setNecessary(Boolean necessary) {
        this.necessary = necessary;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }
}
